package com.tnf.bc.bground.controller;

import com.tnf.bc.bground.certificate.pojo.SysUser;
import com.tnf.bc.bground.common.utils.resultutil.ApiResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

/**
 * @description: //TODO
 * @author: lzl
 * @create: 2022-11-23 12:05
 **/
@RestController
@RequestMapping(value = "/api")
public class TestControlller {

    @PostMapping(path = "/test")
    @PreAuthorize("hasAuthority('sys:create')")
    public String login(){
        System.out.println("asmxkas");
        return "你好";
    }

}